package com.huilan.hgt.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.huilan.hgt.base.BaseModel;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 新闻表
 * </p>
 *
 * @author ghy
 * @since 2018-11-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("T_NEWS")
public class News extends BaseModel<News> {

    private static final long serialVersionUID = 1L;

        /**
     * 新闻ID
     */
         @TableId(value = "NEWS_ID", type = IdType.AUTO)
    private Integer newsId;

        /**
     * 新闻标题
     */
         @TableField("NEW_TITLE")
    private String newTitle;

        /**
     * 新闻内容
     */
         @TableField("NEW_CONTENT")
    private String newContent;


    public static final String NEWS_ID = "NEWS_ID";

    public static final String NEW_TITLE = "NEW_TITLE";

    public static final String NEW_CONTENT = "NEW_CONTENT";

    @Override
    protected Serializable pkVal() {
        return this.newsId;
    }

}
